package com.itheima.youdianda.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonProperty;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;

/**
 * @Author
 */
@Data
@ApiModel("友情连接")
public class YddLink implements Serializable {
    @ApiModelProperty("编号")
    @TableId(value = "id",type = IdType.AUTO)
    private Integer id;
    @ApiModelProperty("标题")
    private String title;
    @ApiModelProperty("url")
    private String url;
    @ApiModelProperty("描述")
    private String des;
    @ApiModelProperty("图片")
    private String img;
    @ApiModelProperty("连接类型")
    //1是图片链接， 2是文字链接
    private Integer type;
    @ApiModelProperty("是否为默认数据")
    //是否为默认数据null为不是，1表示是
    @JsonProperty("default_data")
    private String defaultData;
}
